package com.lglbc;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @Author 乐哥聊编程
 * @Doc 关注公众号"乐哥聊编程"获取文档和源码
 * @Date 2023/6/17
 * @Description
 */
@Mapper
public interface StorageMapper {
    @Update("update storage_tbl set count = count - #{count} where code = #{code} and count>=#{count}")
    boolean update(@Param("count") int count, @Param("code") String code);
}
